package com.clw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2017-12-18.
 */
@Controller
public class MainController {
    @RequestMapping("/main")
    public ModelAndView main(){
        return new ModelAndView("index/index");
    }

    @RequestMapping("/main/home")
    public ModelAndView home(){
        return new ModelAndView("index/mainpage");
    }
}
